import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'index',
            component: () => import('../views/Index.vue'),
            redirect: '/profile',
            children: [
                {
                    path: '/profile',
                    component: () => import('../components/Profile.vue')
                },
                {
                    path: '/videoModerate',
                    component: () => import('../components/VideoModerate.vue')
                },
                // {
                //     path: '/videoReport',
                //     component: () => import('../components/VideoReport.vue')
                // },
            ]
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('../views/Login.vue')
        }
    ]
})

export default router
